package edu.thingsnet.controllers;


import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import edu.thingsnet.base.BaseController;
import edu.thingsnet.utils.JsonResult;


@RestController
public class Mainc extends BaseController{
	private static final Logger log = LoggerFactory.getLogger(Mainc.class);
	@RequestMapping(method = RequestMethod.GET,value={"/","/index"})
	public JsonResult index(HttpServletRequest request,Model model)
	{
		log.info("index view");
		
		this.setJsonResult(JsonResult.Result.RESULT_ERROR.getResult(), JsonResult.Result.RESULT_ERROR.getMsg(), "0", null, 0);
		return this.getJsonResult();
	}
}
